package com.neuedu.boot.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * 项目：      springboot
 * 类名:       AppConfig
 * 创建时间：  2024/3/26 11：52
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@Configuration
public class AppConfig {

    @Autowired
    ObjectMapper objectMapper;

    // @Bean
    // @Primary
    // ObjectMapper objectMapper(){
    //     ObjectMapper objectMapper = new ObjectMapper();
    //
    //
    //     return objectMapper;
    // }



    @Bean("appName")
    String  appName(){

        return "SBoot";
    }



}
